package com.corechina.apex_osswords.domain.dao;

import com.corechina.apex_osswords.domain.entity.SysUserGroups;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.corechina.apex_osswords.domain.vo.SysUserGroupsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 用户分组表 Mapper 接口
 * </p>
 *
 * @author cc
 * @since 2022-03-03
 */
@Component
public interface SysUserGroupsMapper extends BaseMapper<SysUserGroups> {

    @Select("select * from sys_user_groups order by sort")
    List<SysUserGroups> getList();

    @Select("select * from sys_user_groups where id = #{id}")
    SysUserGroupsVo getOne(@Param("id") Integer id);
}
